package com.xzl.time.utils;

import lombok.Data;

/**
 * @describe ：存储死值的
 * @PageLocation:
 * @Auther xzl
 * @Date 2022/1/6 19:03
 */
public enum MyEnum {
    ARTICLE_SUBSCRIBE_("article_subscribe_","交换机名称,关注类型"),
    //获取消息的队列名称
    ARTICLE_THUMBSUP("article_thumbsUp_","消息队列名称，点赞消息类型"),
    //redis存储用户与文章是否有点赞关联
    THUMBUP_ARTICLE("thumbup_article_","redis存储用户与文章是否有点赞关联"),
    //redis存储对文章的点赞数
    THUMBUP_ARTICLEID("thumbUp_articleId_","redis存储对文章的点赞数"),
    //每个用户都有自己的队列，通过用户id进行区分
    ARTICLE_SUBSCRIBE_QUEUE_("article_subscribe_queue_","每个用户都有自己的队列，通过用户id进行区分"),
    //每个作者都有自己的队列;并且再redis中存放作者的关注数
    ARTICLE_AUTHOR_("article_author_","每个作者都有自己的队列;并且再redis中存放作者的关注数"),
    ARTICLE_COMMENT_("article_comment_","评论队列，以及数据库保存的消息类型");


    private String value;
    private String explain;

    MyEnum(String value, String explain) {
        this.value = value;
        this.explain = explain;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }
}
